﻿using Inovout.Web.Security;
using System.Security.Principal;

namespace Inovout.Web.Security
{
    public static  class IdentityExtensions
    {
        public static string GetAlias(this IIdentity identity)
        {
            IFormsAuthenticationService formsAuthenticationService = new FormsAuthenticationService();
            return formsAuthenticationService.GetUserData();        
        }
    }
}
